A capacitor is a passive electronic component that is used to store electrical energy. It is essentially a device that can hold a charge of electricity.